import Layout from '@/layout/index.vue';

export default {
    path: '/manage',
    name: 'manage',
    component: Layout,
    redirect: '/manage/dashboard',
    children: [
      {
        name: 'dashboard',
        path: 'dashboard',
        component: () => import('@/views/dashboard/index.vue'),
        meta: { title: '分析报告', iconName: 'el-icon-s-marketing', requireAuth: [1, 2] },
      },
      {
        name: 'crawler',
        path: 'crawler',
        component: () => import('@/views/crawler/index.vue'),
        meta: { title: '爬虫管理', iconName: 'el-icon-s-order', requireAuth: [1, 2] },
      },
      {
        name: 'crawlerVisual',
        path: 'crawlerVisual',
        component: () => import('@/views/crawlerVisual/index.vue'),
        meta: { title: '爬虫可视化', iconName: 'el-icon-data-analysis', requireAuth: [1, 2] },
      },
      {
        name: 'dataVisual',
        path: 'dataVisual',
        component: () => import('@/views/dataVisual/index.vue'),
        meta: { title: '数据可视化', iconName: 'el-icon-s-data', requireAuth: [1, 2] },
      },
      {
        name: 'dataCollect',
        path: 'dataCollect',
        component: () => import('@/views/dataCollect/index.vue'),
        meta: { title: '数据集', iconName: 'el-icon-collection', requireAuth: [1, 2] },
      },
      {
        name: 'userManage',
        path: 'userManage',
        component: () => import('@/views/user-manage/index.vue'),
        meta: { title: '用户管理', iconName: 'el-icon-s-custom', requireAuth: [1] },
      },
    ]
  }